package com.pz.dx.dxm.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@TableName("dx_m_opinion")
public class OpinionEntity {
    @TableId
    private String opinionId;

    private Long userId;

    private int status;

    private String fatherId;

    private String tittle;

    private String content;

    private Date createTime;

    public OpinionEntity(Long userId, String fatherId, String tittle, String content) {
        this.userId = userId;
        this.status = 0;
        this.fatherId = fatherId;
        this.tittle = tittle;
        this.content = content;
        this.createTime = new Date();
    }
}
